﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model sipfe.model.dataAccess.SIPMaeEmpresa
<script type="text/javascript">
    $(function () {
        inicioPopPupModal("#detalle4", 450, 750, "DATOS DE LA PERSONA");
    });
</script>
@{   
    int i = 0;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

@using Resources;
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.mantePersonaJS)"></script>
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.autocompleteJS)" ></script>
<div class="divOver">
<table style="width: 100%;" border="1" cellpadding="0" cellspacing="0"  class="tablaDetalle">
    <tr class="titulo1">
        <td>#</td>
        <td>País emisión</td>
        <td>Tipo de Documento</td>
        <td>Número de Documento</td>
        <td>Nombre o Razón Social de la Empresa</td>
        <td>Actividad Principal de la Empresa</td>
        <td>Actividad Secundaria de la Empresa</td>
        <td>Fecha de fundación</td>
        <td>Cantidad Trabajadores</td>
        <td>Cuenta bancaria</td>
        <td>Inicio Vigencia</td>
        <td>Usuario Registro</td>
        <td>Fecha Registro</td>                           
    </tr>
    @{
        i++;        
        <tr class="@(i % 2 != 0 ? "odd" : "even")" id="trDet2@(i)">
            <td>@i</td>            
            <td>@Model.SIPDetCompendio.vNomCorto</td>
            <td>@Model.SIPDetCompendio1.vNomCorto</td>
            <td>@Model.vNumDocum</td> 
            <td>@Model.vRazonSocial</td>
            <td>@(@Model.SIPDetCompendio2 != null ? @Model.SIPDetCompendio2.vNomDetalle : "- - -")</td>
            <td>@(@Model.SIPDetCompendio3 != null ? @Model.SIPDetCompendio3.vNomDetalle : "- - -")</td>
            <td>@String.Format("{0:dd/MM/yyyy}", Model.dfecFunda)</td>
            <td>@Model.nNumTrabaja</td>
            <td>@Model.vCuentaBanco</td>             
            <td>@String.Format("{0:dd/MM/yyyy}", Model.dFecIniVig)</td>
            <td>@Model.SIPMaeUsuario.vCodUsuario</td>
            <td>@String.Format("{0:dd/MM/yyyy HH:mm}", Model.dtFecReg)</td>
        </tr>
    }
</table>    
</div>
<fieldset style="width: 720px;" class="fieldsetStyle1">
<legend class="tituloBlue9">Actualizar Datos de la Empresa</legend>
    <table border="0" style="width: 100%;" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" class="tablaDetalle2">
                    <tbody class="tituloCelesteN8">
                        <tr>
                            <td rowspan="2"><strong><em class="textNormal8"><b>NUEVO TELÉFONO:</b></em></strong></td>
                            <td>Prefijo<span class="asterisco">(*)</span></td>
                            <td>&nbsp;</td>
                            <td>Número Teléfono</td>
                            <td rowspan="2">
                                <img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  onclick="javascript:registrarTelefonoMante('#divDatosTelefono','2');"/></td>
                        </tr>
                        <tr>
                            <td>@Html.TextBox("vPrefijo", null, new { @style = "width:45px;", maxlength = 6 })</td>
                            <td>-</td>
                            <td>@Html.TextBox("vNumTelefono", null, new { @style = "width:150px;", maxlength = 20 })</td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr><td><div id="divDatosTelefono" class="divOver3">@RenderPage("~/Areas/Persona/Views/Shared/RODatosTelefonoEmpresa.cshtml")</div></td></tr>
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" class="tablaDetalle2">
                    <tbody class="tituloCelesteN8">
                        <tr>
                            <td><strong><em class="textNormal8"><b>NUEVO CORREO ELECTRÓNICO</b></em></strong></td>
                            <td><strong><em class="textNormal8"><b>:</b></em></strong></td>
                            <td>@Html.TextBox("vCorreo", null,new {@style="width:350px;text-transform:none;", maxlength=150, onblur="javascript:isValidEmail(this);" })</td>
                            <td><img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  onclick="javascript:registrarCorreoMante('#divDatosEmail','2');"/></td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr><td><div id="divDatosEmail" class="divOver3">@RenderPage("~/Areas/Persona/Views/Shared/RODatosCorreoEmpresa.cshtml")</div></td></tr>        
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" class="tablaDetalle2">
                    <tbody class="tituloCelesteN8">
                        <tr align="center">
                            <td rowspan="2"><strong><em class="textNormal8"><b>xxNUEVO VÍNCULO:</b></em></strong></td>
                            <td>Vínculo<span class="asterisco">(*)</span></td>
                            <td>&nbsp;</td>
                            <td>Categoría</td>
                            <td rowspan="2">
                                <img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  onclick="javascript:registrarVinculoEmpresa('#divDatosVinculo','2');"/></td>
                        </tr>
                        <tr>
                            <td>@Html.DropDownList("nIdeVinculo", (IEnumerable<SelectListItem>)ViewBag.VinculoEmpresa, "--Seleccione--", new { @class = "select8", onchange="javascript:checkVinculoEmpresa(this);" })</td>
                            <td>-</td>
                            <td>@Html.DropDownList("nIdeCategoria", (IEnumerable<SelectListItem>)ViewBag.CategoriaVinculo, "--Seleccione--", new { @class = "select8" })</td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr><td><div id="divDatosVinculo" class="divOver3">@RenderPage("~/Areas/Persona/Views/Shared/ROVinculoEmpresa.cshtml")</div></td></tr>           
    </table>
</fieldset>

<div id="detalle4"></div>  
